import { observable } from "mobx";

class NumberStore {
  @observable
  value = 0;

  changeValue = (v: number) => {
    this.value = v;
  };

  add = () => {
    this.value++;
  };
  reduce = () => {
    this.value--;
  };
}

const numberStore = new NumberStore();

export default numberStore;
